/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ipti.br.tag.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

/**
 *
 * @author israel
 */
@Entity
@SequenceGenerator(name = "configurations_gen", sequenceName = "configurations_gen", initialValue = 1, allocationSize = 1)
public class Configurations implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "configurations_gen")
    private Long id;

    @Column(length = 50, unique=true)
    private String name;

    @Column(length=60)
    private String val;

    public Configurations() {
    }

    public Configurations(String name, String val) {
        this.name = name;
        this.val = val;
    }
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }
    
}
